<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<fmt:setBundle basename="ApplicationMessage" />
<fmt:setLocale value="zh_CN" />

<c:if test="${not empty inbodyRecords}">
<table class="table table-striped table-hover x-table" style="margin-bottom:20px;">
  <thead>
    <tr>
      <th>姓名<br />手机</th>
      <th>来源</th>
      <th>年龄<br />性别</th>
      <th>体重</th>
      <th>骨骼肌</th>
      <th>体脂肪</th>
      <th>体脂率</th>
      <th>BMI值</th>
      <th>腰臀比</th>
      <th>基础代谢</th>
      <th>测试时间</th>
    </tr>
  </thead>
  <tbody>
    <c:forEach var="inbodyRecord" items="${inbodyRecords}">
      <tr>
        <td>${inbodyRecord.name}<br />${inbodyRecord.mobile}</td>
        <td>${inbodyRecord.source}</td>
        <td>${inbodyRecord.age}<br />${inbodyRecord.gender.description}</td>
        <td>${inbodyRecord.weightMax}/${inbodyRecord.weightMin}<br />${inbodyRecord.weight}<br />${inbodyRecord.weightLabel}</td>
        <td>${inbodyRecord.smMax}/${inbodyRecord.smMin}<br />${inbodyRecord.sm}<br />${inbodyRecord.smLabel}</td>
        <td>${inbodyRecord.bfMax}/${inbodyRecord.bfMin}<br />${inbodyRecord.bf}<br />${inbodyRecord.bfLabel}</td>
        <td>${inbodyRecord.bfrMax}/${inbodyRecord.bfrMin}<br />${inbodyRecord.bfr}<br />${inbodyRecord.bfrLabel}</td>
        <td>${inbodyRecord.bmiMax}/${inbodyRecord.bmiMin}<br />${inbodyRecord.bmi}<br />${inbodyRecord.bmiLabel}</td>
        <td>${inbodyRecord.whrMax}/${inbodyRecord.whrMin}<br />${inbodyRecord.whr}<br />${inbodyRecord.whrLabel}</td>
        <td>${inbodyRecord.bmMax}/${inbodyRecord.bmMin}<br />${inbodyRecord.bm}<br />${inbodyRecord.bmLabel}</td>
        <td>${inbodyRecord.recordTime}</td>
      </tr>
    </c:forEach>
  </tbody>
</table>
</c:if>
